/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Act Billing Arrangement Code</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * abstDomain: A17478 (C-0-T13953-A13954-A17478-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getActBillingArrangementCode()
 * @model extendedMetaData="name='ActBillingArrangementCode'"
 * @generated
 */
public enum ActBillingArrangementCode implements Enumerator {
	/**
	 * The '<em><b>BLK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BLK_VALUE
	 * @generated
	 * @ordered
	 */
	BLK(0, "BLK", "BLK"),

	/**
	 * The '<em><b>CAP</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CAP_VALUE
	 * @generated
	 * @ordered
	 */
	CAP(1, "CAP", "CAP"),

	/**
	 * The '<em><b>CONTF</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CONTF_VALUE
	 * @generated
	 * @ordered
	 */
	CONTF(2, "CONTF", "CONTF"),

	/**
	 * The '<em><b>FFS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FFS_VALUE
	 * @generated
	 * @ordered
	 */
	FFS(3, "FFS", "FFS"),

	/**
	 * The '<em><b>FINBILL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FINBILL_VALUE
	 * @generated
	 * @ordered
	 */
	FINBILL(4, "FINBILL", "FINBILL"),

	/**
	 * The '<em><b>ROST</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ROST_VALUE
	 * @generated
	 * @ordered
	 */
	ROST(5, "ROST", "ROST"),

	/**
	 * The '<em><b>SESS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #SESS_VALUE
	 * @generated
	 * @ordered
	 */
	SESS(6, "SESS", "SESS");

	/**
	 * The '<em><b>BLK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BLK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BLK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BLK_VALUE = 0;

	/**
	 * The '<em><b>CAP</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CAP</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CAP
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CAP_VALUE = 1;

	/**
	 * The '<em><b>CONTF</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CONTF</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CONTF
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CONTF_VALUE = 2;

	/**
	 * The '<em><b>FFS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FFS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FFS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FFS_VALUE = 3;

	/**
	 * The '<em><b>FINBILL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FINBILL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FINBILL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FINBILL_VALUE = 4;

	/**
	 * The '<em><b>ROST</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ROST</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ROST
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ROST_VALUE = 5;

	/**
	 * The '<em><b>SESS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>SESS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #SESS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int SESS_VALUE = 6;

	/**
	 * An array of all the '<em><b>Act Billing Arrangement Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ActBillingArrangementCode[] VALUES_ARRAY =
		new ActBillingArrangementCode[] {
			BLK,
			CAP,
			CONTF,
			FFS,
			FINBILL,
			ROST,
			SESS,
		};

	/**
	 * A public read-only list of all the '<em><b>Act Billing Arrangement Code</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ActBillingArrangementCode> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Act Billing Arrangement Code</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActBillingArrangementCode get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActBillingArrangementCode result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Billing Arrangement Code</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActBillingArrangementCode getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ActBillingArrangementCode result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Act Billing Arrangement Code</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ActBillingArrangementCode get(int value) {
		switch (value) {
			case BLK_VALUE: return BLK;
			case CAP_VALUE: return CAP;
			case CONTF_VALUE: return CONTF;
			case FFS_VALUE: return FFS;
			case FINBILL_VALUE: return FINBILL;
			case ROST_VALUE: return ROST;
			case SESS_VALUE: return SESS;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ActBillingArrangementCode(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ActBillingArrangementCode
